<div class="row" style="margin-bottom: 5px; position: relative;">
    <form role="form" method="get" action="">
    <div class="col-md-10">
        <div class="once-filter">
            <div class="normal-setting" style="display: none;">
                    <input type="text" name="r" value="<{$beforeAction.Current.Route}>"/>
            </div>

            <div class="box-body">
                <ul>
                    <{foreach from=$filter.items item=item key=key}>

                    <{if $item.type == 'br'}>
                    <br/>
                    <{else}>
                    <li for="<{$item.name}>">
                        <{if !empty($item.title)}><span class="title"><{$item.title}></span><{/if}>

                        <!-- 文本输入框 -->
                        <{if $item.type == 'input'}>
                        <input type="text" name="<{$item.name}>" value="<{$item.value}>" <{$item.attr nofilter}> />

                        <!-- 隐藏框 -->
                        <{elseif $item.type == 'hidden'}>
                        <input type="hidden" name="<{$item.name}>" value="<{$item.value}>" />

                        <!-- 多行文本输入框 textarea -->
                        <{elseif $item.type == 'textarea'}>
                        <textarea name="<{$item.name}>"><{$item.value}></textarea>

                        <!-- 选择框 -->
                        <{elseif $item.type == 'select'}>
                        <{html_options name=$item.name options=$item.args.options selected=$item.value}>

                        <{elseif $item.type == 'radio'}>
                        <ul>
                            <{foreach from=$item.args.options key=kk item=ii}>
                            <li>
                                <input id="radio-<{$key}>-<{$kk}>" name="<{$item.name}>" type="radio" value="<{$kk}>" <{if $kk == $item.value}>checked<{/if}> />
                                <label for="radio-<{$key}>-<{$kk}>"><{$ii}></label>
                            </li>
                            <{/foreach}>
                        </ul>

                        <{elseif $item.type == 'checkbox'}>
                        <ul>
                            <{foreach from=$item.args.options key=kk item=ii}>
                            <li>
                                <input id="checkbox-<{$key}>-<{$kk}>" name="<{$item.name}>[]" type="checkbox" value="<{$kk}>" <{if in_array($kk, $item.value)}>checked<{/if}> />
                                <label for="checkbox-<{$key}>-<{$kk}>"><{$ii}></label>
                            </li>
                            <{/foreach}>
                        </ul>

                        <{/if}>

                    </li>
                    <{/if}>


                    <{/foreach}>
                </ul>
            </div><!-- /.box-body -->

            <div class="box-footer">

            </div>

        </div><!-- /.box -->
    </div><!--/.col (left) -->

    <div style="position: absolute; right: 10px; top: 50%; margin-top: -17px;">
        <button class="btn btn-primary" id="btn-submit" type="submit" title="<{'查询' t}>"><i class="fa fa-search"></i></button>
        <{foreach from=$filter.buttons item=item}>
            <a class="<{$item.class}>" href="<{$item.href}>"><{$item.title nofilter}></a>
        <{/foreach}>
    </div>

    </form>

    <style>
        .once-filter { font-size: 12px; }
        .once-filter .title { display: inline-block; font-weight: 700; margin: 0 0 0 10px; }
        .once-filter ul { display: inline-block; padding: 0; }
        .once-filter label { font-weight: normal; text-decoration: underline; font-size: 12px; }
        .once-filter li { list-style: none; display: inline-block; margin: 4px 0; padding: 0; }
    </style>
</div>

